<?php echo $this->fetch('header.html'); ?>

<?php echo $this->fetch('top.html'); ?>

<div id="content">
	<div class="g_mian_nav"><a href="#">上海</a>&gt;<a href="#">其他</a>&gt;<a href="#">川菜</a>&gt; <span>董大师金牌稻香蛙</span></div>
    <div id="left_g">
        <?php echo $this->fetch('left.html'); ?>
    </div>

    <div id="right_g">
        <div class="g_b"><img src="<?php echo $this->_var['prorootpath']; ?>/<?php echo $this->_var['storelogimg']; ?>" width="730" height="440" /><a href="#">本店推荐菜</a></div>
        <div class="right_g_cont">
        	<div class="right_g_one clearfix">
            	<ul class="tit">
            	  <li class="one"><a class="cur"></a></li>
                  <li class="two"><a></a></li>
                  <li class="three"><a></a></li>
                </ul>
            	<div class="wrap">
                    <div class="wrap_bg">
                        <ul class="list" id="one">
                        <?php if ($this->_var['new_goods_id']): ?>
                        <div class="g_more"><a href="<?php echo url('app=store&act=search_goods&new_goods_storeid=' . $this->_var['new_goods_id']. ''); ?>"></a></div>
                        <?php endif; ?>
                            <?php $_from = $this->_var['new_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'rgoods');if (count($_from)):
    foreach ($_from AS $this->_var['rgoods']):
?>
                            <li>
                                <div class="pic"><a href="<?php echo url('app=goods&id=' . $this->_var['rgoods']['goods_id']. ''); ?>" target="_blank"><img src="<?php echo $this->_var['rgoods']['default_image']; ?>" width="130" height="130" /></a></div>
                                <h3><a href="<?php echo url('app=goods&id=' . $this->_var['rgoods']['goods_id']. ''); ?>" target="_blank"><?php echo htmlspecialchars($this->_var['rgoods']['goods_name']); ?></a></h3>
                                <p><?php echo price_format($this->_var['rgoods']['price']); ?></p>
                            </li>
                            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                        </ul>
                    	<ul class="list"  id="two" style="display:none;">
                        <?php if ($this->_var['recommended_goods_id']): ?>
                        <div class="g_more"><a href="<?php echo url('app=store&act=search_goods&recommended_goods_id=' . $this->_var['recommended_goods_id']. ''); ?>"></a></div>
                        <?php endif; ?>
                            <?php $_from = $this->_var['recommended_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'rgoods');if (count($_from)):
    foreach ($_from AS $this->_var['rgoods']):
?>
                            <li>
                                <div class="pic"><a href="<?php echo url('app=goods&id=' . $this->_var['rgoods']['goods_id']. ''); ?>" target="_blank"><img src="<?php echo $this->_var['rgoods']['default_image']; ?>" width="130" height="130" /></a></div>
                                <h3><a href="<?php echo url('app=goods&id=' . $this->_var['rgoods']['goods_id']. ''); ?>" target="_blank"><?php echo htmlspecialchars($this->_var['rgoods']['goods_name']); ?></a></h3>
                                <p><?php echo price_format($this->_var['rgoods']['price']); ?></p>
                            </li>
                            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                        </ul>
                    	<ul class="list"  id="three" style="display:none;">
                        <?php if ($this->_var['new_recommended_goods_id']): ?>
                        <div class="g_more"><a href="<?php echo url('app=store&act=search_goods&new_recommended_goods_id=' . $this->_var['new_recommended_goods_id']. ''); ?>"></a></div>
                        <?php endif; ?>
                            <?php $_from = $this->_var['new_recommended_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'rgoods');if (count($_from)):
    foreach ($_from AS $this->_var['rgoods']):
?>
                            <li>
                                <div class="pic"><a href="<?php echo url('app=goods&id=' . $this->_var['rgoods']['goods_id']. ''); ?>" target="_blank"><img src="<?php echo $this->_var['rgoods']['default_image']; ?>" width="130" height="130" /></a></div>
                                <h3><a href="<?php echo url('app=goods&id=' . $this->_var['rgoods']['goods_id']. ''); ?>" target="_blank"><?php echo htmlspecialchars($this->_var['rgoods']['goods_name']); ?></a></h3>
                                <p><?php echo price_format($this->_var['rgoods']['price']); ?></p>
                            </li>
                            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                        </ul>
                    </div>
                </div>
                <script type="text/javascript">
                	$(document).ready(function(){
						$(".right_g_one .tit li a").click(function(){
							$(".right_g_one .tit li a").removeClass("cur");
							$(this).addClass("cur");
							$(".right_g_one .wrap_bg ul").hide();
							var i=$(".right_g_one .tit li a").index(this);
							$(".right_g_one .wrap_bg ul").eq(i).show();

						});
					});
                </script>
            </div>
            <div class="right_g_two clearfix"">
            	<ul class="tit" >
                  <?php $_from = $this->_var['store_all']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'lstore');if (count($_from)):
    foreach ($_from AS $this->_var['lstore']):
?>
             		<li class="<?php if ($this->_var['lstore']['cate_id'] == $this->_var['gcategory_id']): ?>cur<?php endif; ?>">
             		 <a name="guojia" >
             		 <?php echo htmlspecialchars($this->_var['lstore']['cate_name']); ?>
             		 </a>
             		</li>
          		  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                </ul>
            	<div class="wrap clearfix">
                    <div class="wrap_bg clearfix">
                       <ul class="list">
                       <div class="g_more"><a href="<?php echo url('app=store&id=' . $this->_var['store_id']. '&act=search'); ?>"></a></div>
                            <?php $_from = $this->_var['goods_list0']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'rgoods');if (count($_from)):
    foreach ($_from AS $this->_var['rgoods']):
?>
                            <li>
                                <div class="pic"><a href="<?php echo url('app=goods&id=' . $this->_var['rgoods']['goods_id']. ''); ?>" target="_blank"><img src="<?php echo $this->_var['rgoods']['default_image']; ?>" width="130" height="130" /></a></div>
                                <h3><a href="<?php echo url('app=goods&id=' . $this->_var['rgoods']['goods_id']. ''); ?>" target="_blank"><?php echo htmlspecialchars($this->_var['rgoods']['goods_name']); ?></a></h3>
                                <p><?php echo price_format($this->_var['rgoods']['price']); ?></p>
                            </li>
                            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                        </ul>
                        <ul class="list" style=" display:none">
                        <div class="g_more"><a href="<?php echo url('app=store&id=' . $this->_var['store_id']. '&act=search&cate_id=' . $this->_var['cate_listid0']. ''); ?>"></a></div>
                            <?php $_from = $this->_var['goods_list1']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'rgoods');if (count($_from)):
    foreach ($_from AS $this->_var['rgoods']):
?>
                            <li>
                                <div class="pic"><a href="<?php echo url('app=goods&id=' . $this->_var['rgoods']['goods_id']. ''); ?>" target="_blank"><img src="<?php echo $this->_var['rgoods']['default_image']; ?>" width="130" height="130" /></a></div>
                                <h3><a href="<?php echo url('app=goods&id=' . $this->_var['rgoods']['goods_id']. ''); ?>" target="_blank"><?php echo htmlspecialchars($this->_var['rgoods']['goods_name']); ?></a></h3>
                                <p><?php echo price_format($this->_var['rgoods']['price']); ?></p>
                            </li>
                            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                        </ul>
                        <ul class="list" style=" display:none">
                        <div class="g_more"><a href="<?php echo url('app=store&id=' . $this->_var['store_id']. '&act=search&cate_id=' . $this->_var['cate_listid1']. ''); ?>"></a></div>
                            <?php $_from = $this->_var['goods_list2']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'rgoods');if (count($_from)):
    foreach ($_from AS $this->_var['rgoods']):
?>
                            <li>
                                <div class="pic"><a href="<?php echo url('app=goods&id=' . $this->_var['rgoods']['goods_id']. ''); ?>" target="_blank"><img src="<?php echo $this->_var['rgoods']['default_image']; ?>" width="130" height="130" /></a></div>
                                <h3><a href="<?php echo url('app=goods&id=' . $this->_var['rgoods']['goods_id']. ''); ?>" target="_blank"><?php echo htmlspecialchars($this->_var['rgoods']['goods_name']); ?></a></h3>
                                <p><?php echo price_format($this->_var['rgoods']['price']); ?></p>
                            </li>
                            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                        </ul>
                        <ul class="list" style=" display:none">
                        <div class="g_more"><a href="<?php echo url('app=store&id=' . $this->_var['store_id']. '&act=search&cate_id=' . $this->_var['cate_listid2']. ''); ?>"></a></div>
                            <?php $_from = $this->_var['goods_list3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'rgoods');if (count($_from)):
    foreach ($_from AS $this->_var['rgoods']):
?>
                            <li>
                                <div class="pic"><a href="<?php echo url('app=goods&id=' . $this->_var['rgoods']['goods_id']. ''); ?>" target="_blank"><img src="<?php echo $this->_var['rgoods']['default_image']; ?>" width="130" height="130" /></a></div>
                                <h3><a href="<?php echo url('app=goods&id=' . $this->_var['rgoods']['goods_id']. ''); ?>" target="_blank"><?php echo htmlspecialchars($this->_var['rgoods']['goods_name']); ?></a></h3>
                                <p><?php echo price_format($this->_var['rgoods']['price']); ?></p>
                            </li>
                            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                        </ul>
                        <ul class="list" style=" display:none">
                        <div class="g_more"><a href="<?php echo url('app=store&id=' . $this->_var['store_id']. '&act=search&cate_id=' . $this->_var['cate_listid3']. ''); ?>"></a></div>
                            <?php $_from = $this->_var['goods_list4']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'rgoods');if (count($_from)):
    foreach ($_from AS $this->_var['rgoods']):
?>
                            <li>
                                <div class="pic"><a href="<?php echo url('app=goods&id=' . $this->_var['rgoods']['goods_id']. ''); ?>" target="_blank"><img src="<?php echo $this->_var['rgoods']['default_image']; ?>" width="130" height="130" /></a></div>
                                <h3><a href="<?php echo url('app=goods&id=' . $this->_var['rgoods']['goods_id']. ''); ?>" target="_blank"><?php echo htmlspecialchars($this->_var['rgoods']['goods_name']); ?></a></h3>
                                <p><?php echo price_format($this->_var['rgoods']['price']); ?></p>
                            </li>
                            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                        </ul>
                        <ul class="list" style=" display:none">
                        <div class="g_more"><a href="<?php echo url('app=store&id=' . $this->_var['store_id']. '&act=search&cate_id=' . $this->_var['cate_listid4']. ''); ?>"></a></div>
                            <?php $_from = $this->_var['goods_list5']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'rgoods');if (count($_from)):
    foreach ($_from AS $this->_var['rgoods']):
?>
                            <li>
                                <div class="pic"><a href="<?php echo url('app=goods&id=' . $this->_var['rgoods']['goods_id']. ''); ?>" target="_blank"><img src="<?php echo $this->_var['rgoods']['default_image']; ?>" width="130" height="130" /></a></div>
                                <h3><a href="<?php echo url('app=goods&id=' . $this->_var['rgoods']['goods_id']. ''); ?>" target="_blank"><?php echo htmlspecialchars($this->_var['rgoods']['goods_name']); ?></a></h3>
                                <p><?php echo price_format($this->_var['rgoods']['price']); ?></p>
                            </li>
                            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                        </ul>
                        <ul class="list" style=" display:none">
                        <div class="g_more"><a href="<?php echo url('app=store&id=' . $this->_var['store_id']. '&act=search&cate_id=' . $this->_var['cate_listid5']. ''); ?>"></a></div>
                            <?php $_from = $this->_var['goods_list6']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'rgoods');if (count($_from)):
    foreach ($_from AS $this->_var['rgoods']):
?>
                            <li>
                                <div class="pic"><a href="<?php echo url('app=goods&id=' . $this->_var['rgoods']['goods_id']. ''); ?>" target="_blank"><img src="<?php echo $this->_var['rgoods']['default_image']; ?>" width="130" height="130" /></a></div>
                                <h3><a href="<?php echo url('app=goods&id=' . $this->_var['rgoods']['goods_id']. ''); ?>" target="_blank"><?php echo htmlspecialchars($this->_var['rgoods']['goods_name']); ?></a></h3>
                                <p><?php echo price_format($this->_var['rgoods']['price']); ?></p>
                            </li>
                            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                        </ul>
                        <ul class="list" style=" display:none">
                        <div class="g_more"><a href="<?php echo url('app=store&id=' . $this->_var['store_id']. '&act=search&cate_id=' . $this->_var['cate_listid6']. ''); ?>"></a></div>
                            <?php $_from = $this->_var['goods_list7']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'rgoods');if (count($_from)):
    foreach ($_from AS $this->_var['rgoods']):
?>
                            <li>
                                <div class="pic"><a href="<?php echo url('app=goods&id=' . $this->_var['rgoods']['goods_id']. ''); ?>" target="_blank"><img src="<?php echo $this->_var['rgoods']['default_image']; ?>" width="130" height="130" /></a></div>
                                <h3><a href="<?php echo url('app=goods&id=' . $this->_var['rgoods']['goods_id']. ''); ?>" target="_blank"><?php echo htmlspecialchars($this->_var['rgoods']['goods_name']); ?></a></h3>
                                <p><?php echo price_format($this->_var['rgoods']['price']); ?></p>
                            </li>
                            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                        </ul>
                        <ul class="list" style=" display:none">
                        <div class="g_more"><a href="<?php echo url('app=store&id=' . $this->_var['store_id']. '&act=search&cate_id=' . $this->_var['cate_listid7']. ''); ?>"></a></div>
                            <?php $_from = $this->_var['goods_list8']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'rgoods');if (count($_from)):
    foreach ($_from AS $this->_var['rgoods']):
?>
                            <li>
                                <div class="pic"><a href="<?php echo url('app=goods&id=' . $this->_var['rgoods']['goods_id']. ''); ?>" target="_blank"><img src="<?php echo $this->_var['rgoods']['default_image']; ?>" width="130" height="130" /></a></div>
                                <h3><a href="<?php echo url('app=goods&id=' . $this->_var['rgoods']['goods_id']. ''); ?>" target="_blank"><?php echo htmlspecialchars($this->_var['rgoods']['goods_name']); ?></a></h3>
                                <p><?php echo price_format($this->_var['rgoods']['price']); ?></p>
                            </li>
                            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                        </ul>
                        <ul class="list" style=" display:none">
                        <div class="g_more"><a href="<?php echo url('app=store&id=' . $this->_var['store_id']. '&act=search&cate_id=' . $this->_var['cate_listid8']. ''); ?>"></a></div>
                            <?php $_from = $this->_var['goods_list9']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'rgoods');if (count($_from)):
    foreach ($_from AS $this->_var['rgoods']):
?>
                            <li>
                                <div class="pic"><a href="<?php echo url('app=goods&id=' . $this->_var['rgoods']['goods_id']. ''); ?>" target="_blank"><img src="<?php echo $this->_var['rgoods']['default_image']; ?>" width="130" height="130" /></a></div>
                                <h3><a href="<?php echo url('app=goods&id=' . $this->_var['rgoods']['goods_id']. ''); ?>" target="_blank"><?php echo htmlspecialchars($this->_var['rgoods']['goods_name']); ?></a></h3>
                                <p><?php echo price_format($this->_var['rgoods']['price']); ?></p>
                            </li>
                            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                        </ul>
                        <ul class="list" style=" display:none">
                        <div class="g_more"><a href="#"></a></div>
                            <?php $_from = $this->_var['goods_list10']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'rgoods');if (count($_from)):
    foreach ($_from AS $this->_var['rgoods']):
?>
                            <li>
                                <div class="pic"><a href="<?php echo url('app=goods&id=' . $this->_var['rgoods']['goods_id']. ''); ?>" target="_blank"><img src="<?php echo $this->_var['rgoods']['default_image']; ?>" width="130" height="130" /></a></div>
                                <h3><a href="<?php echo url('app=goods&id=' . $this->_var['rgoods']['goods_id']. ''); ?>" target="_blank"><?php echo htmlspecialchars($this->_var['rgoods']['goods_name']); ?></a></h3>
                                <p><?php echo price_format($this->_var['rgoods']['price']); ?></p>
                            </li>
                            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                        </ul>
                    </div>
                </div>
                <script type="text/javascript">
                	$(document).ready(function(){
						$(".right_g_two .tit li").click(function(){
							$(".right_g_two .tit li").removeClass("cur");
							$(this).addClass("cur");
							$(".right_g_two .wrap_bg ul").hide();
							var i=$(".right_g_two .tit li").index(this);
							$(".right_g_two .wrap_bg ul").eq(i).show();
							$(".gg_left_one ul li").removeClass("cur");
							$(".gg_left_one ul li").eq(i).addClass("cur");

						});
					});
                </script>
            </div>

        </div>
    </div>
    <div class="clear"></div>
</div>

<?php echo $this->fetch('footer.html'); ?>
